/**
 * 
 */
package org.insia.smartposse.metier;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

import org.insia.smartposse.metier.webservice.LightProjectSkill;

/**
 * @author raguerri
 *
 */
public class ProjectSkill 
implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 2332579259088169467L;
	private long _id = -1L;
	private Project _project;
	private Set<ProjectSkillAffectation> _affectations = new HashSet<ProjectSkillAffectation>();
	private Skill _skill;
	private double _fee;
	
	/**
	 * Empty constructor.
	 *
	 */
	public ProjectSkill() {
	}
	
	/**
	 * @return the _affectation
	 */
	public Set<ProjectSkillAffectation> getAffectations() {
		return _affectations;
	}
	/**
	 * 
	 * @param affectation the affectation to set
	 */
	public void setAffectations(Set<ProjectSkillAffectation> affectations) {
		this._affectations = affectations;
	}
	/**
	 * @return the _fee
	 */
	public double getFee() {
		return _fee;
	}
	/**
	 * @param fee the fee to set
	 */
	public void setFee(double fee) {
		this._fee = fee;
	}
	/**
	 * @return the _projet
	 */
	public Project getProject() {
		return _project;
	}
	/**
	 * @param projet the projet to set
	 */
	public void setProject(Project project) {
		this._project = project;
	}
	/**
	 * @return the _skill
	 */
	public Skill getSkill() {
		return _skill;
	}
	/**
	 * @param skill the skill to set
	 */
	public void setSkill(Skill skill) {
		this._skill = skill;
	}

	public long getId() {
		return _id;
	}

	/**
	 * 
	 * @param id the id to set
	 */
	public void setId(long id) {
		this._id = id;
	}
	/**
	 * 
	 * @return lcatet the webservice ProjectSkill representation
	 */
	public LightProjectSkill setLight() {
		LightProjectSkill lpskill = new LightProjectSkill(this);
		return lpskill;
	}
}